﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NewsCollection.Data
{
   public class DataContext: DbContext
    {
       
     
        public DbSet<News> News { get; set; }
     
        public DbSet<Category> Categories { get; set; }
        public DbSet<Manufactory> Manufactory { get; set; }
      
        
      
      
        public DbSet<Manu_Cate_Mapping> Manu_Cate_Mapping { get; set; }

        public DbSet<CategoryManuals> CategoryManual { get; set; }
        public DataContext() { }
        public DataContext(String connectionString)
            : base(connectionString)
        {
      //      this.Configuration.LazyLoadingEnabled = false;
        }
      
    }
  
}
